/**
 * 
 */
package br.com.rodolfo.timesheet.service;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.rodolfo.timesheet.dao.LoginDAO;
import br.com.rodolfo.timesheet.entity.Login;

/**
 * @author rodolfo
 *
 */

@Service("loginService")
public class LoginService implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Autowired
	private LoginDAO dao;


	public Login logar(Login bean) throws Exception{

		return dao.findByLoginSenha(bean);

	}

	public void setDao(LoginDAO dao) {
		this.dao = dao;
	}

}
